﻿@model Lavka.Models.Products

@{
    ViewBag.Title = "Создание товара";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "Products", FormMethod.Post, new { enctype = "multipart/form-data" })) 
{
    @Html.ValidationSummary(false)
    <div class="panel ui-corner-all">

        <h2>Создание товара</h2>
		@Html.Partial("_CreateOrEdit", Model)

        <div class="navigateButton">
            <input type="submit" value="Создать" class="button" />
        </div>

        <div>
            @Html.ActionLink("Назад к списку", "Index")
        </div>

    </div>
}
